﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TicketMovie.Admin
{
    public partial class WebForm8 : System.Web.UI.Page
    {
        private DataClasses1DataContext dc = new DataClasses1DataContext();
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void ButtonSave_Click(object sender, EventArgs e)
        {
            Category cata = new Category();
            cata.name_category = this.addcata.Value;
            this.dc.Categories.InsertOnSubmit(cata);
            this.dc.SubmitChanges();
        }
    }
}